home *** CD-ROM | disk | FTP | other *** search
/ QBasic & Borland Pascal & C / Delphi5.iso / Basic / Visual Basic.60 / COMMON / TOOLS / VB / MSAGENT / INSTALL / CGRAM.EXE / cgminst.inf < prev    next >
Encoding:
Windows Setup INFormation  |  1997-08-14  |  4.5 KB  |  149 lines

  1. ;!! NAME CHANGE to CGMINST.INF
  2. ;installation and removal of the TruVoice Text-to-Speech engine by Lernout & Hauspie
  3. ;  Last modified  6/22/97 10:00 AM   by eric moore (a-emoore)
  4. ;  New GUID's
  5. ;  now look for install dirs before prompting
  6. ;  added wrapcgrm.dll to the install
  7. ;  added msagent2.inf file and entry to clean occache
  8. ;  removed IE 3.0 check
  9. ;  added code from magaent2.inf and removed the inf from cabinet also del runonce entry
  10.  
  11. [Version] 
  12. Signature=$CHICAGO$ 
  13. AdvancedINF=2.5,%ADVPKPMPT%
  14.  
  15. [DestinationDirs] 
  16. TTSCopy = 49005    ;49007
  17. TTSRemove = 49005    ;49007
  18. CGINFCopy = 17
  19. RemoveCab = 25,occache
  20. ;CGHLPCopy = 18 
  21.  
  22. [CGCustomDestination]
  23. ;49000 = CustomLDIDSection49000,18
  24. 49001,49002,49003,49004 = CustomLDIDSection49001,5
  25. 49005,49006,49007,49008 = CustomLDIDSection49002,5
  26.  
  27. [CustomLDIDSection49000]
  28. HKLM,"SOFTWARE\Microsoft\Internet Explorer","Build",%IEPMPT%
  29.  
  30. [CustomLDIDSection49001]
  31. HKLM,SOFTWARE\Microsoft\Windows\CurrentVersion,ProgramFilesDir,,%24%\%PROGRAMF%
  32.  
  33. [CustomLDIDSection49002]
  34. HKLM,"SOFTWARE\Microsoft\Microsoft Agent","AgentDir",%TellInstall%,
  35. HKLM,"SOFTWARE\Microsoft\Agent","InstallDir",%TellInstall%,
  36. ,,,%AskInstall%,%49002%\%MSAGENT%
  37.  
  38. [DefaultInstall] 
  39. CustomDestination = CGCustomDestination
  40. RunPreSetupCommands = RunPreSetup 
  41. CopyFiles = TTSCopy, CGINFCopy  ;CGHLPCopy 
  42. AddReg = TTSRegister
  43. RunPostSetupCommands = RunPostSetup
  44.  
  45. [DefaultInstall.NT]
  46. CustomDestination = CGCustomDestination
  47. RunPreSetupCommands = RunPreSetup 
  48. CopyFiles = TTSCopy, CGINFCopy  ;CGHLPCopy 
  49. AddReg = TTSRegister
  50. RunPostSetupCommands = RunPostSetupNT
  51.  
  52. [RunPreSetup]
  53. cgminst.exe
  54.  
  55. [RunPostSetup]
  56. regsvr32 /s %49007%\wrapcgrm.dll
  57.  
  58. [RunPostSetupNT]
  59. regsvr32 /s """%49007%\wrapcgrm.dll"""
  60.  
  61. [RemoveCabinet]
  62. DelFiles=RemoveCab
  63.  
  64. [RemoveCgram] 
  65. BeginPrompt=BeginPromptSection
  66. EndPrompt=EndPromptSection
  67. CustomDestination = UnInstallDestination
  68. UnregisterOCXs = UnRegisterFilesSection
  69. DelFiles = TTSRemove ;TTSCopy, CGHLPCopy
  70. DelReg = TTSUnRegister
  71. DelDirs = RemoveDirs
  72. Cleanup = 1
  73.  
  74. [BeginPromptSection]
  75. Prompt="%AskUninstall%"
  76. ButtonType=YESNO
  77. Title="%CgramDesc%"
  78.  
  79. [EndPromptSection]
  80. Prompt="%DoneUninstall%"
  81.  
  82. [UnInstallDestination]
  83. 49005,49006,49007,49008 = CustomLDIDRSection49007,5
  84.  
  85. ;this is used to remove the cab...
  86. [CustomLDIDRSection49007]
  87. HKLM,"SOFTWARE\Microsoft\Microsoft Agent","CgramDir",,
  88.  
  89. [UnRegisterFilesSection]
  90. %49007%\wrapcgrm.dll
  91.  
  92. [RemoveDirs]
  93. %49007%
  94.  
  95. [RemoveCab]
  96. cgram.exe
  97.  
  98. [TTSCopy]
  99. cgrm_enp.dll
  100. wrapcgrm.dll
  101.  
  102. [TTSRemove]
  103. cgrm_enp.dll,,,1
  104. wrapcgrm.dll,,,1
  105.  
  106. [CGHLPCopy] 
  107. ;cgrm_enp.hlp
  108.  
  109. [CGINFCopy]
  110. cgminst.inf
  111.  
  112. [TTSRegister]
  113. HKCR,CLSID\{1B6BF831-9299-101B-8A19-265D428C60FF},,, "Lernout & Hauspie TruVoice"
  114. HKCR,CLSID\{1B6BF831-9299-101B-8A19-265D428C60FF}\InprocServer32,,, "%49007%\CGRM_ENP.DLL"
  115. HKLM,"SOFTWARE\Microsoft\Microsoft Agent","CgramDir",,%49006%
  116. HKLM,"SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\TruVoice","DisplayName",,%DiskName%
  117. HKLM,"SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\TruVoice","UninstallString",,"RunDll32 advpack.dll,LaunchINFSection %17%\cgminst.inf, RemoveCgram"
  118. HKLM,"SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\TruVoice","RequiresIESysFile",,"0"
  119. HKLM,SOFTWARE\Microsoft\Windows\CurrentVersion\RunOnce,"MSAgtCgm",,"RunDll32 advpack.dll,LaunchINFSection %17%\cgminst.inf, RemoveCabinet" 
  120.  
  121. [TTSUnRegister]
  122. HKCR,CLSID\{1B6BF831-9299-101B-8A19-265D428C60FF}
  123. HKLM,"SOFTWARE\Microsoft\Microsoft Agent","CgramDir"
  124. HKLM,"SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\TruVoice"
  125. HKLM,SOFTWARE\Microsoft\Windows\CurrentVersion\RunOnce,"MSAgtCgm"
  126.  
  127. [SourceDisksNames] 
  128. 1 = %DiskName%,TruVoice,0
  129.  
  130. [SourceDisksFiles] 
  131. cgminst.inf = 1
  132. cgrm_enp.dll = 1
  133. wrapcgram.dll = 1
  134. ;cgrm_enp.hlp = 1
  135.  
  136. [Strings] 
  137. SPEECH = "Speech"
  138. CgramDesc = "Lernout & Hauspie TruVoice Uninstall" 
  139. DiskName = "Lernout & Hauspie TruVoice for Microsoft Agent" 
  140. AskInstall = "Where would you like to install Microsoft Agent 1.5 and its components?"
  141. TellInstall = "Setup has detected Microsoft Agent components in the directory below. It is strongly recommended that you not change this path."
  142. AskUninstall = "Are you sure you want to remove Lernout & Hauspie TruVoice for Microsoft Agent?"
  143. DoneUninstall = "Lernout & Hauspie TruVoice for Microsoft Agent has been removed."
  144. MSAGENT = "Microsoft Agent"
  145. ADVPKPMPT = "The correct version of Advpack.dll was not found, installation halted."
  146. IEPMPT = "You need to have Microsoft Internet Explorer version 3.0 or later, installation halted."
  147. NOAGENTPMPT = "You must install Microsft Agent to use this Speech Component."
  148.  
  149.